﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace GenetecHackathonCod3
{
    public class Note
    {
        [XmlElement]
        public String title;
        [XmlElement]
        public String text;
        [XmlElement]
        public DateTime date;

        public Note()
        {
        }

        public Note(String title, String text)
        {
            this.title = title;
            this.text = text;
            date = DateTime.UtcNow;
        }

        public String getDateString()
        {
            return date.ToString();
        }

        public String getTitle()
        {
            return title;
        }

        public String getText()
        {
            return text;
        }

        public void setTitle(String title)
        {
            this.title = title;
        }

        public void setText(String text)
        {
            this.text = text;
        }
    }
}
